package com.byxy.mysystem.model.commodity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author omd
 * @since 2022-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Commodity extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 商品价格
     */
    @TableField("PRICE")
    private BigDecimal price;

    /**
     * 商品描述
     */
    @TableField("DESCRIBES")
    private String describes;


}
